public class MethodDemo01 {
    public static void main(String[] args) {
        test1();// 调用test1方法
    }


    public static void test1() {
        test2();
        System.out.println("test1");
    }

    public static void test2() {
        test3();
        System.out.println("test2");
    }

    public static void test3() {
        test4();
        System.out.println("test3");
    }

    public static void test4() {
        test5();
        System.out.println("test4");
    }

    public static void test5() {
        System.out.println("test5");
    }

}
